package com.vivo.challenge;

import junit.framework.TestCase;

public class MyJavaServerChallengeTestCase extends TestCase {

	public void test1() {
		MyJavaServerChallenge m = new MyJavaServerChallenge();
		String[] config = { "/", "TestServlet", "/test", "TestServlet2" };
		String requestUri = "/test/Test";
		String handler = m.getHandler(config, requestUri);
		assertEquals(handler, "TestServlet2");
	}

	public static void main(String[] args) {
		junit.textui.TestRunner.run(MyJavaServerChallengeTestCase.class);
	}
}
